#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int check(int* s, int sta, int n, int a, int b, int c) {
	int end = n - 1;
	while (1) {
		int sum = 0;
		for (int i = sta; i <= end; i++)
			sum += s[i];
		if (sum > a * (b * (end + 1) - c * (sta + 1)))
			return(end - sta + 1);
		else
			end--;


	}
}
int main() {
	int n, a, b, c;
	int s[5000] = { 0 };
	scanf("%d %d %d %d", &n, &a, &b, &c);
	for (int i = 0; i < n; i++)
		scanf("%d", &s[i]);
	int sta = 0;
	int ans = 0;
	while (1) {
		if (ans < check(s, sta, n, a, b, c))
			ans = check(s, sta, n, a, b, c);
		sta++;
		if ((n - sta + 1) <= ans)
			break;
	}
	printf("%d", ans);

	return 0;
}